from .base import *
#SECRET_KEY = 'django-insecure-+vfaw@lxs+!d!g8ss+!mncfnn3o*(!!-x$#p5p^rti#we=0g-l'
# 在开头导入函数get_random_secret_key
from django.core.management.utils import get_random_secret_key

# SECURITY WARNING: don't run with debug turned on in production!
#调试配置
DEBUG = False
#允许访问主机名配置
ALLOWED_HOSTS = ['*']
DATABASES = { 
    'default': { 
        'ENGINE': 'django.db.backends.postgresql', 
        'NAME': 'blog', 
        'USER': 'blog', 
        'PASSWORD': '12345678'  
    } 
}
# 在最后添加代码生成随机密钥
SECRET_KEY = get_random_secret_key()